package cc.realxyq.demo.post.processor;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author kwhan
 * @date 2022年01月11日 2:24
 */
@Slf4j
//@Component
public class MyApplicationListener implements ApplicationListener<ApplicationEvent> {
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        log.info("事件：{} 发生了",event.getClass().getSimpleName());
    }
}
